home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Apple WWDC 1996
/
WWDC96_1996 (CD).toast
/
Technology Materials
/
MacOS 8 Resources
/
Developer Tools
/
Mac OS 8 Interfaces & Libraries
/
Interfaces
/
CIncludes
/
TSMObject.xh
< prev
next >
Wrap
Text File
|
1996-05-01
|
15KB
|
569 lines
/*
* This file was generated by the SOM Compiler.
* FileName: TSMObject.xh.
* Generated using:
* SOM Precompiler somipc: 2.18
* SOM Emitter emitxh.dll: 2.33
*/
#ifndef SOM_TSMObject_xh
#define SOM_TSMObject_xh
class TSMObject;
#define TSMObject_MajorVersion 1
#define TSMObject_MinorVersion 1
/* C++ SOM defs */
#include <somcls.xh>
#include <somcm.xh>
/* C++ parent defs */
#ifndef SOM_SOMObject_xh
#include <somobj.xh>
#endif
#ifndef TSMObject_API
#define TSMObject_API
/*
* -- The Class API
*/
/*
* Start of user-defined types:
*/
class SOMClass;
class SOMObject;
class HIWindow;
class HIEmbeddingPanel;
/*
* End of user-defined types.
*/
#ifdef OLDIBMSOMAPISUPPORT
#define TSMObjectCClassData TSMObjectClassData
#define TSMObjectNewClass(major,minor) somNewVersionedClassReference(TSMObject,major,minor)
#endif
/* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
#define TSMObjectMetaClass SOMClass
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=power
#endif
/* The API to the TSMObject class object, and the methods it introduces. */
SOMEXTERN struct TSMObjectClassDataStructure {
#ifdef OLDIBMSOMAPISUPPORT
SOMClass *classObject; /* always zero, use somNewClassReference instead */
#else
long zero;
#endif
somStaticClassInfo *sci;
somDToken instanceDataToken;
long reserved [3];
somMToken _get_fTSMContext;
somMToken _set_fTSMContext;
somMToken _get_fStatus;
somMToken _set_fStatus;
somMToken _get_fServiceContext;
somMToken _set_fServiceContext;
somMToken InitializeService;
somMToken TerminateService;
somMToken ServiceChanged;
somMToken EditInlineHole;
somMToken FeatureChanged;
somMToken ActivateService;
somMToken DeactivateService;
somMToken ServiceKeyEvent;
somMToken ServiceMouseEvent;
somMToken ServiceWindowEvent;
somMToken ReleaseInlineHoles;
somMToken HideServiceWindows;
somMToken DoSetCursor;
somMToken TerminateInput;
} SOMDLINK TSMObjectClassData;
#if PRAGMA_ALIGN_SUPPORTED
# pragma options align=reset
#endif
#if !defined(TSMObject_Class_Source) && !defined(SOM_Module_tsmobject_Source)
#if PRAGMA_IMPORT_SUPPORTED
#pragma import list TSMObjectClassData
#endif
#endif
/*
* -- Typedefs for TSMObject Method Procedures
*/
SOMEXTERN {
typedef TSMContext (* SOMLINK somTD_TSMObject__get_fTSMContext)(TSMObject *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMObject__set_fTSMContext)(TSMObject *somSelf, Environment *ev,
TSMContext fTSMContext);
typedef OSStatus (* SOMLINK somTD_TSMObject__get_fStatus)(TSMObject *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMObject__set_fStatus)(TSMObject *somSelf, Environment *ev,
OSStatus fStatus);
typedef TSMServiceContextRef (* SOMLINK somTD_TSMObject__get_fServiceContext)(TSMObject *somSelf, Environment *ev);
typedef void (* SOMLINK somTD_TSMObject__set_fServiceContext)(TSMObject *somSelf, Environment *ev,
TSMServiceContextRef fServiceContext);
typedef OSStatus (* SOMLINK somTD_TSMObject_InitializeService)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_TerminateService)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_ServiceChanged)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_EditInlineHole)(TSMObject *somSelf, Environment *ev,
AppleEvent* theEvent);
typedef OSStatus (* SOMLINK somTD_TSMObject_FeatureChanged)(TSMObject *somSelf, Environment *ev,
UInt32 theType);
typedef OSStatus (* SOMLINK somTD_TSMObject_ActivateService)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_DeactivateService)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_ServiceMouseEvent)(TSMObject *somSelf, Environment *ev,
Point* mousePos,
KeyboardModifiers Modifiers,
UInt32 when,
UInt32 theEventType,
AppleEvent* event);
typedef OSStatus (* SOMLINK somTD_TSMObject_ServiceKeyEvent)(TSMObject *somSelf, Environment *ev,
KeyboardModifiers Modifiers,
VirtualKeyCode theKeyCode,
VirtualKeyCode theCharCode,
AppleEvent* event);
typedef OSStatus (* SOMLINK somTD_TSMObject_ServiceWindowEvent)(TSMObject *somSelf, Environment *ev,
HIWindow* theWindow,
UInt32 theEventType,
AppleEvent* event);
typedef OSStatus (* SOMLINK somTD_TSMObject_HideServiceWindows)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_DoSetCursor)(TSMObject *somSelf, Environment *ev,
Point* mousePos,
RegionClass rgnClass,
ByteOffset offset,
boolean isLeftHand,
AppleEvent* theEvent);
typedef OSStatus (* SOMLINK somTD_TSMObject_ReleaseInlineHoles)(TSMObject *somSelf, Environment *ev);
typedef OSStatus (* SOMLINK somTD_TSMObject_TerminateInput)(TSMObject *somSelf, Environment *ev);
/*
* -- Typedefs for Inherited Methods
*/
typedef void (* SOMLINK somTD_TSMObject_somInit)(TSMObject *somSelf);
typedef void (* SOMLINK somTD_TSMObject_somUninit)(TSMObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_TSMObject_somDuplicateReference)(TSMObject *somSelf);
typedef boolean (* SOMLINK somTD_TSMObject_somCompareReference)(TSMObject *somSelf,
SOMObject* anObject);
typedef SOMObject* (* SOMLINK somTD_TSMObject_somRelease)(TSMObject *somSelf);
typedef void (* SOMLINK somTD_TSMObject_somFree)(TSMObject *somSelf);
typedef boolean (* SOMLINK somTD_TSMObject_somCanDelete)(TSMObject *somSelf);
typedef SOMClass* (* SOMLINK somTD_TSMObject_somGetClass)(TSMObject *somSelf);
typedef corbastring (* SOMLINK somTD_TSMObject_somGetClassName)(TSMObject *somSelf);
typedef long (* SOMLINK somTD_TSMObject_somGetSize)(TSMObject *somSelf);
typedef boolean (* SOMLINK somTD_TSMObject_somIsA)(TSMObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TSMObject_somRespondsTo)(TSMObject *somSelf,
somId mId);
typedef boolean (* SOMLINK somTD_TSMObject_somIsInstanceOf)(TSMObject *somSelf,
SOMClass* aClassObj);
typedef boolean (* SOMLINK somTD_TSMObject_somDispatch)(TSMObject *somSelf,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TSMObject_somClassDispatch)(TSMObject *somSelf,
SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap);
typedef boolean (* SOMLINK somTD_TSMObject_somCastObj)(TSMObject *somSelf,
SOMClass* cls);
typedef boolean (* SOMLINK somTD_TSMObject_somResetObj)(TSMObject *somSelf);
typedef SOMObject* (* SOMLINK somTD_TSMObject_somPrintSelf)(TSMObject *somSelf);
typedef void (* SOMLINK somTD_TSMObject_somDumpSelf)(TSMObject *somSelf,
long level);
typedef void (* SOMLINK somTD_TSMObject_somDumpSelfInt)(TSMObject *somSelf,
long level);
}
#endif /* TSMObject_API */
/*
* -- This emitter treats Method Tokens as Thunks by default.
* -- Use the sc modifier "nothunks" to change this default
*/
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
/*
* -- The C++ Wrapper Class for TSMObject
*/
class TSMObject : public SOMObject
{
public:
// TSMObject::new registers use of the class object, and then uses somNew
// to allocate memory and load the object method table pointer.
void *operator new(size_t size)
{
SOM_IgnoreWarning(size);
// Allocate memory using the default allocator for TSMObject, and
// clear mem & set method table pointer, call basic initialization
return (void*) somNewObject(TSMObject);
}
// TSMObject::delete uses the default deallocator for the object's class.
void operator delete(void * obj)
{
if (obj) {
SOM_Resolve(obj,SOMObject,somFree)
( (SOMObject*) obj );
}
}
/* method: _get_fTSMContext */
TSMContext _get_fTSMContext(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,_get_fTSMContext)
(this,ev);
}
/* method: _set_fTSMContext */
void _set_fTSMContext(Environment *ev,
TSMContext fTSMContext)
{
SOM_ResolveD(this,TSMObject,TSMObject,_set_fTSMContext)
(this,ev,fTSMContext);
}
/* method: _get_fStatus */
OSStatus _get_fStatus(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,_get_fStatus)
(this,ev);
}
/* method: _set_fStatus */
void _set_fStatus(Environment *ev,
OSStatus fStatus)
{
SOM_ResolveD(this,TSMObject,TSMObject,_set_fStatus)
(this,ev,fStatus);
}
/* method: _get_fServiceContext */
TSMServiceContextRef _get_fServiceContext(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,_get_fServiceContext)
(this,ev);
}
/* method: _set_fServiceContext */
void _set_fServiceContext(Environment *ev,
TSMServiceContextRef fServiceContext)
{
SOM_ResolveD(this,TSMObject,TSMObject,_set_fServiceContext)
(this,ev,fServiceContext);
}
/* method: InitializeService */
OSStatus InitializeService(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,InitializeService)
(this,ev);
}
/* method: TerminateService */
OSStatus TerminateService(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,TerminateService)
(this,ev);
}
/* method: ServiceChanged */
OSStatus ServiceChanged(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,ServiceChanged)
(this,ev);
}
/* method: EditInlineHole */
OSStatus EditInlineHole(Environment *ev,
AppleEvent* theEvent)
{
return SOM_ResolveD(this,TSMObject,TSMObject,EditInlineHole)
(this,ev,theEvent);
}
/* method: FeatureChanged */
OSStatus FeatureChanged(Environment *ev,
UInt32 theType)
{
return SOM_ResolveD(this,TSMObject,TSMObject,FeatureChanged)
(this,ev,theType);
}
/* method: ActivateService */
OSStatus ActivateService(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,ActivateService)
(this,ev);
}
/* method: DeactivateService */
OSStatus DeactivateService(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,DeactivateService)
(this,ev);
}
/* method: ServiceMouseEvent */
OSStatus ServiceMouseEvent(Environment *ev,
Point* mousePos,
KeyboardModifiers Modifiers,
UInt32 when,
UInt32 theEventType,
AppleEvent* event)
{
return SOM_ResolveD(this,TSMObject,TSMObject,ServiceMouseEvent)
(this,ev,mousePos,Modifiers,when,theEventType,event);
}
/* method: ServiceKeyEvent */
OSStatus ServiceKeyEvent(Environment *ev,
KeyboardModifiers Modifiers,
VirtualKeyCode theKeyCode,
VirtualKeyCode theCharCode,
AppleEvent* event)
{
return SOM_ResolveD(this,TSMObject,TSMObject,ServiceKeyEvent)
(this,ev,Modifiers,theKeyCode,theCharCode,event);
}
/* method: ServiceWindowEvent */
OSStatus ServiceWindowEvent(Environment *ev,
HIWindow* theWindow,
UInt32 theEventType,
AppleEvent* event)
{
return SOM_ResolveD(this,TSMObject,TSMObject,ServiceWindowEvent)
(this,ev,theWindow,theEventType,event);
}
/* method: HideServiceWindows */
OSStatus HideServiceWindows(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,HideServiceWindows)
(this,ev);
}
/* method: DoSetCursor */
OSStatus DoSetCursor(Environment *ev,
Point* mousePos,
RegionClass rgnClass,
ByteOffset offset,
boolean isLeftHand,
AppleEvent* theEvent)
{
return SOM_ResolveD(this,TSMObject,TSMObject,DoSetCursor)
(this,ev,mousePos,rgnClass,offset,isLeftHand,theEvent);
}
/* method: ReleaseInlineHoles */
OSStatus ReleaseInlineHoles(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,ReleaseInlineHoles)
(this,ev);
}
/* method: TerminateInput */
OSStatus TerminateInput(Environment *ev)
{
return SOM_ResolveD(this,TSMObject,TSMObject,TerminateInput)
(this,ev);
}
/*
* -- Inherited methods
*/
/* method: somInit */
void somInit()
{
SOM_ResolveD(this,TSMObject,SOMObject,somInit)
(this);
}
/* method: somUninit */
void somUninit()
{
SOM_ResolveD(this,TSMObject,SOMObject,somUninit)
(this);
}
/* method: somDuplicateReference */
SOMObject* somDuplicateReference()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somDuplicateReference)
(this);
}
/* method: somCompareReference */
boolean somCompareReference(SOMObject* anObject)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somCompareReference)
(this,anObject);
}
/* method: somRelease */
SOMObject* somRelease()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somRelease)
(this);
}
/* method: somFree */
void somFree()
{
SOM_ResolveD(this,TSMObject,SOMObject,somFree)
(this);
}
/* method: somCanDelete */
boolean somCanDelete()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somCanDelete)
(this);
}
/* method: somGetClass */
SOMClass* somGetClass()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somGetClass)
(this);
}
/* method: somGetClassName */
corbastring somGetClassName()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somGetClassName)
(this);
}
/* method: somGetSize */
long somGetSize()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somGetSize)
(this);
}
/* method: somIsA */
boolean somIsA(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somIsA)
(this,aClassObj);
}
/* method: somRespondsTo */
boolean somRespondsTo(somId mId)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somRespondsTo)
(this,mId);
}
/* method: somIsInstanceOf */
boolean somIsInstanceOf(SOMClass* aClassObj)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somIsInstanceOf)
(this,aClassObj);
}
/* va_list method: somDispatch */
/* the va_list invocation form */
boolean TSMObject_somDispatch(somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somDispatch(somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TSMObject,SOMObject,somDispatch)
(this,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* va_list method: somClassDispatch */
/* the va_list invocation form */
boolean TSMObject_somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
va_list ap)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
}
/* the varargs invocation form */
boolean somClassDispatch(SOMClass* clsObj,
somToken* retValue,
somId methodId,
...)
{
va_list ap;
va_start(ap, methodId);
boolean __somResult =
(boolean) SOM_ResolveD(this,TSMObject,SOMObject,somClassDispatch)
(this,clsObj,retValue,methodId,ap);
va_end(ap);
return __somResult;
}
/* method: somCastObj */
boolean somCastObj(SOMClass* cls)
{
return SOM_ResolveD(this,TSMObject,SOMObject,somCastObj)
(this,cls);
}
/* method: somResetObj */
boolean somResetObj()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somResetObj)
(this);
}
/* method: somPrintSelf */
SOMObject* somPrintSelf()
{
return SOM_ResolveD(this,TSMObject,SOMObject,somPrintSelf)
(this);
}
/* method: somDumpSelf */
void somDumpSelf(long level)
{
SOM_ResolveD(this,TSMObject,SOMObject,somDumpSelf)
(this,level);
}
/* method: somDumpSelfInt */
void somDumpSelfInt(long level)
{
SOM_ResolveD(this,TSMObject,SOMObject,somDumpSelfInt)
(this,level);
}
}; /* TSMObject */
#endif /* SOM_TSMObject_xh */